package com.feizi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feizi.entity.AddressEntity;
import com.feizi.entity.CommentEntity;
import com.feizi.entity.OrderdetailEntity;
import com.feizi.entity.OrderinfoEntity;
import com.feizi.entity.ShopcartEntity;
import com.feizi.mapper.AddressMapper;
import com.feizi.mapper.CommentMapper;
import com.feizi.mapper.OrderMapper;
import com.feizi.mapper.ShopcartMapper;
import com.feizi.service.AddressService;
import com.feizi.service.CommentService;
import com.feizi.service.OrderService;
import com.feizi.service.ShopcartService;

@Service
public class CommentServiceImpl implements CommentService{
	
	@Autowired
	private CommentMapper commentMapper;

	@Override
	public List<CommentEntity> findComment(int f_pid) {
		// TODO Auto-generated method stub
		return commentMapper.findComment(f_pid);
	}

	@Override
	public int addComment(CommentEntity ce) {
		// TODO Auto-generated method stub
		return commentMapper.addComment(ce);
	}

}
